package com.alibaba.cola.demo.common;

public enum ResultMessage {

    SUCCESS(200, "成功"),
    FAIL(550, "失败"),
    SYS_ERROR(551, "服务器异常"),
    PARAM_ERROR(410, "参数有误"),
    ;

    private int code;
    private String message;

    ResultMessage(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
